/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package warehouse.sorts;

import entity.Warehouse;
import java.util.Comparator;

/**
 *
 * @author Tkach Andrii
 */
public class SortByName implements Comparator<Warehouse>{

    @Override
    public int compare(Warehouse wh1, Warehouse wh2) {
       return wh1.getName().compareTo(wh2.getName());
    }
    
}
